<script language="javascript" src="/js/AC_RunActiveContent.js"></script>
<?
$db_banner	= new db_query("SELECT ban_link, ban_target, ban_picture, ban_width, ban_height
									 FROM banners
									 WHERE ban_type = 2 AND ban_active = 1 AND lang_id = " . $lang_id . "
									 ORDER BY ban_order ASC");
if(mysql_num_rows($db_banner->result) > 0){
	?>
	<div class="banner">
		<ul>
		<?
		while($row = mysql_fetch_assoc($db_banner->result)){
			$picture			= $con_root_path . "banners/" . $row["ban_picture"];
			$fs_filepath	= $con_root_path . "banners/";
			if(getExtension($row["ban_picture"]) == "swf"){
				?>
				<script type="text/javascript">AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','<?=$row["ban_width"]?>','height','<?=$row["ban_height"]?>','src','<?=$fs_filepath?><?=substr($row["ban_picture"], 0, strrpos($row["ban_picture"], "."))?>','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','wmode','transparent' );</script>
				<?
			}
			else{
				?>
				<li><a href="<?=$row["ban_link"]?>" target="<?=$row["ban_target"]?>"><img src="<?=$picture?>" /></a></li>
				<?
			}
		}
		?>
		</ul>
	</div>
	<?
}
$db_banner->close();
unset($db_banner);
?>